package com.bfs.anasit.model;

import com.bfs.anasit.model.embeddable.Name;

import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: lukman
 * Date: 7/25/11
 * Time: 9:33 AM
 * To change this template use File | Settings | File Templates.
 */
@SessionScoped
public class CurrentUser {
    private Long id;
    private String userName;
    private String passString;
    @ManagedProperty(value = "#{name}")
    private Name name;
    private List<AnasitRole> roles;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }


    public String getPassString() {
        return passString;
    }

    public void setPassString(String passString) {
        this.passString = passString;
    }


    public Name getName() {
        return name;
    }

    public void setName(Name name) {
        this.name = name;
    }

    public List<AnasitRole> getRoles() {
        return roles;
    }

    public void setRoles(List<AnasitRole> roles) {
        this.roles = roles;
    }
}
